package com.jl.card.parse.part.simpleTLV;

public class DeviceID {
	
	public static String getIDName(byte id){
		switch (id) {
		case 0x01:
			return "Keypad";
		case 0x02:
			return "Display";
		case 0x03:
			return "Earpiece";
		case 0x10:
		case 0x11:
		case 0x12:
		case 0x13:
		case 0x14:
		case 0x15:
		case 0x16:
		case 0x17:
			return "Card Reader " + (id & 0x07);
		case 0x21:
		case 0x22:
		case 0x23:
		case 0x24:
		case 0x25:
		case 0x26:
		case 0x27:
			return "Channel " + (id & 0x07);
		case (byte) 0x81:
			return "UICC";
		case (byte) 0x82:
			return "Terminal";
		case (byte) 0x83:
			return "Network";
		default:
			return "Reserved";
		}
	}
}
